/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetbi_objets;

import java.util.Objects;

/**
 * Projet BI - M2 FIC 2012-2013
 *
 * @author Jef, Tuan-Long, William, Mohamed
 */
public class OAptitudeFormation {
    private int idAptitudeFormation;
    private int idFormation;
    private String aptitudeApprise;

    public OAptitudeFormation(int idAptitudeFormation, int idFormation, String aptitudeApprise) {
        this.idAptitudeFormation = idAptitudeFormation;
        this.idFormation = idFormation;
        this.aptitudeApprise = aptitudeApprise;
    }

    public OAptitudeFormation() {
    }
    
    

    public int getIdAptitudeFormation() {
        return idAptitudeFormation;
    }

    public void setIdAptitudeFormation(int idAptitudeFormation) {
        this.idAptitudeFormation = idAptitudeFormation;
    }

    public int getIdFormation() {
        return idFormation;
    }

    public void setIdFormation(int idFormation) {
        this.idFormation = idFormation;
    }

    public String getAptitudeApprise() {
        return aptitudeApprise;
    }

    public void setAptitudeApprise(String aptitudeApprise) {
        this.aptitudeApprise = aptitudeApprise;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + this.idAptitudeFormation;
        hash = 97 * hash + this.idFormation;
        hash = 97 * hash + Objects.hashCode(this.aptitudeApprise);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final OAptitudeFormation other = (OAptitudeFormation) obj;
        if (this.idAptitudeFormation != other.idAptitudeFormation) {
            return false;
        }
        if (this.idFormation != other.idFormation) {
            return false;
        }
        if (!Objects.equals(this.aptitudeApprise, other.aptitudeApprise)) {
            return false;
        }
        return true;
    }
    
    
}
